package cn.com.taiji.oospub.wechat.mapper;

import cn.com.taiji.oospub.wechat.entity.OrderMainInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2020-10-28
 */
public interface OrderMainInfoMapper extends BaseMapper<OrderMainInfo> {
    @Select("select Code from order_main_info where 1 = 1 order by Create_Time desc limit 1" )
//    @Select("select top 1 Code from order_main_info where 1 = 1 order by Create_Time desc" )
    String getLastOrderCode();

}
